package service.Impl;


import dao.ChessUserDao;
import entity.ChessUser;
import service.ChessUserService;

/**
 * 实现ChessUser类数据库连接接口（仿SpringBoot结构）
 *
 * @author 任禹名
 */
public class ChessUserServiceImpl implements ChessUserService {
    ChessUserDao chessUserDao = new ChessUserDao();

    @Override
    public ChessUser findUser(String name) {
        return chessUserDao.findUser(name);
    }

    @Override
    public void insertUser(ChessUser user) {
        chessUserDao.insertUser(user);
    }

    public void updateUserImg(String fileName, String user) {
        chessUserDao.updateUserImg(fileName, user);
    }

}
